#pragma once

#include <atlimage.h>

class CMyAtlImage
	: public ATL::CImage
{
public:
	CMyAtlImage(void);
	~CMyAtlImage(void);

	BOOL Load886( LPCTSTR pszFileName );

	BOOL LoadFormMem( void * pMemData, long len);


	void SetBackColor886( COLORREF color );

private:
	void PNGImageAlpha( CImage* pPngImg );
	void SetImageBackColor( CImage* img,COLORREF color );
};
